﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/MasterALSafa.Master"
    CodeBehind="ClothesPricing.aspx.cs" Inherits="School.Pages.Uniforms.ClothesPricing" %>

<%@ Register Src="../UserControls/CampusPackage.ascx" TagName="CampusPackage" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
  <asp:UpdatePanel ID="UpdatePanel1" runat="server">
  <ContentTemplate>
    <div>
        <table align="right" dir="rtl">
            <tr>
                <td colspan="2">
                    <uc1:CampusPackage ID="CampusPackage1" runat="server" />
                </td>
                <td>
                </td>
                <td>
                    &nbsp;
                    <asp:Label ID="Label1" runat="server" Width="500px"></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="width: 85px;">
                    الزى
                </td>
                <td>
                    <asp:DropDownList Width="145" ID="ddlClothes" DataValueField="Id" DataTextField="Name"
                        runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlClothes_SelectedIndexChanged" 
                        AppendDataBoundItems="True">
                         <asp:ListItem Value="0">اختيار</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td></td>
                  <td></td>
            </tr>
             <tr>
                <td colspan="4" style="padding-right:80px;">
                    <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="Size_Id"
                        AutoGenerateColumns="False" CssClass="Grid"
                    HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
                    PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername">
                        <AlternatingRowStyle CssClass="GridItemAltername" />
                        <Columns>
                            <asp:BoundField DataField="Code" HeaderText="الكود" >
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Descrption" HeaderText="الوصف" >
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SizeName" HeaderText="المقاس" >
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="السعر">
                                <ItemTemplate>
                                    <div style="text-align:center">
                                    <asp:TextBox ID="txtPrice" runat="server" onkeypress="return FilterFloat(this, event)"
                                        Text='<%# Bind("Price") %>'></asp:TextBox>
                                        </div>
                                </ItemTemplate>
                       
                                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle CssClass="GridHeaderFooter" />
                        <HeaderStyle CssClass="GridHeaderFooter" />
                        <PagerStyle CssClass="GridPager" />
                    </asp:GridView>
                </td>
            </tr>
             <tr>
                <td colspan="4">
                    <asp:Label ID="lblResult" runat="server"></asp:Label>
                </td>
            </tr>
            <tr>
                <td colspan="4" style="height: 50px; vertical-align: middle; padding-right: 300px;">
                    <asp:Button ID="btnSaveChanges" CssClass="graybutton" Width="120" runat="server" Text="حفظ" OnClick="btnSaveChanges_Click" />
                </td>
            </tr>
        </table>
    </div>
    </ContentTemplate>
 </asp:UpdatePanel>
</asp:Content>
